package Day3;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/5  9:48
 **/
public class Test1 {
    public static void main(String[] args) {

        int i = 0;
        int sum = 0;
        // 1 +2 +3 +4 +5
        while ( i<= 100){
            sum = sum + i;
            //简写  sum+=i
            i++;
        }
        System.out.println(sum);
    }
}
